export default defineNuxtPlugin(({ vueApp }) => {
  vueApp.config.globalProperties.$log = console.log
  vueApp.config.globalProperties.$to = (url: string) => {
    window.open(url)
  }
})

declare module '@vue/runtime-core' {
  interface ComponentCustomProperties {
    $log: Function
  }
}
